<h1>Listing users</h1>

<table>
  <tr>
  	<th>Login</th>
    <th>First Name</th>
    <th>Last Name</th>
	<th>Email</th>
	<th>Phone</th>
	<th>Jabber login</th>
	<th>Location</th>
	<th>Groups</th>
  </tr>

<% for user in @users %>
  <tr>
    <td><%= link_to h(user.login), user %></td>
    <td><%= user.first_name %></td>
    <td><%= user.last_name %></td>
    <td><%= user.email %></td>
    <td><%= user.phone %></td>
	<td><%= user.jabber_login %></td>
    <td><%= user.location %></td>
	<td><%= user.user_groups.size %></td>
  </tr>
<% end %>
</table>

